<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <b>请选择要执行测试的ucloud</b>
                    <br/>
                    <br/>
                    <p>
                        <span>项目：</span>
                        <select ng-model="info.projectSelect" ng-change="projectClick()"
                                ng-options="project.name for project in info.projects">
                            <option value="">请选择</option>
                        </select>
                        <span style="margin-left: 5%;">uCloud：</span>
                        <select ng-model="info.agentSelect" ng-change="agentClick()"
                                ng-options="agent.ip for agent in info.projectAgents">
                            <option value="">请选择</option>
                        </select>
                        <button style="margin-left: 10%;" ng-click="startTesting()"
                                ng-disabled="isStart() || (info.tags.length == 0 && info.caseIds.length == 0)">开始测试
                        </button>
                    </p>
                    <br/>
                    <p>
                        <span>请输入要运行的测试tag：</span><input type="" placeholder="多个tag用逗号隔开" ng-model="info.tags" name="">
                    </p>
                </div>
                <div class="row">
                    <div ng-show="info.isTree" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"
                         style="height: 680px;width:500px;overflow-y: auto;overflow-x: auto;">
                        <div style="margin-left: 5%;">
                            <!-- <input ng-if="info.isTree"  type="" ng-model="predicate" name="" filter-expression="predicate"> -->
                            <treecontrol class="tree-boot"
                                         tree-model="treedata"
                                         options="treeOptions"
                                         selected-node="selectedNode"
                                         expanded-nodes="expandedNodes"
                                         on-selection="showSelected(node)">
                                <input ng-if="node.name!='测试用例'" type="checkbox" ng-change="checkChange(node)"
                                       data-ng-model="node.Selected" ng-true-value="true" ng-false-value="false"/>
                                {{node.name}}
                            </treecontrol>
                        </div>
                    </div>
                    <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                        <div class="box-body" style="">
                            <div ng-show="info.isLogTrue">
                                <a href="javascript:void(0);" ng-click="open()"
                                   ng-if="info.isOpen && info.reportPath != ''">自动测试已完成，点击查看详细结果.....</a>
                                <div id="log_div"
                                     style="width: 150%;height: 450px;overflow: auto; background-color:#000000;left: 910px;color: #FFFFFF"
                                     ng-bind-html="info.logs">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3"></div>
                </div>

            </div>
        </div>
    </div>
</section>